package com.ddd.test;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@MapperScan({"com.ddd.test.dao","com.ddd.test.query"})
@RestController
@SpringBootApplication
@ComponentScan(basePackages = {"com.ddd.test.controller","com.ddd.test.service","com.ddd.test.repo","com.ddd.test.repoimpl","com.ddd.test.domainserv.impl","com.ddd.test.kafka","com.ddd.test.utils"})
//@EnableAutoConfiguration
public class Application {

	public static void main(String[] args) {
        SpringApplication app = new SpringApplication(Application.class);
        app.setBannerMode(Banner.Mode.OFF);
        app.run(args);
    }

    @GetMapping("/status")
    public String status() {
        return "ok";
    }

}
